package com.dhcc.bpm.alarm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiafayu
 * @since 2022-02-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ALARM_OBJECT")
@ApiModel(value="AlarmObject对象", description="告警对象表")
public class AlarmObject implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(
            value = "ID",
            type = IdType.ASSIGN_ID
    )
    @JsonSerialize(
            using = ToStringSerializer.class,
            nullsUsing = NullSerializer.class
    )
    private Long id;

    @ApiModelProperty(value = "对象编号")
    @TableField("OBJECTNO")
    private String objectno;

    @ApiModelProperty(value = "对象名称")
    @TableField("OBJECTNAME")
    private String objectname;

    @ApiModelProperty(value = "通知方式01短信02微信03企业微信04API05H5")
    @TableField("CONTACTTYPE")
    private String contacttype;

    @ApiModelProperty(value = "联系号码/URL")
    @TableField("CONTACTINFO")
    private String contactinfo;

    @ApiModelProperty(value = "是否启用0停用1启用")
    @TableField("IENABLE")
    private String ienable;

    @ApiModelProperty(value = "备注")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATE_USER")
    private String createUser;

    @ApiModelProperty(value = "创建部门")
    @TableField("CREATE_DEPT")
    private String createDept;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private String createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("UPDATE_USER")
    private String updateUser;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private String updateTime;

    @ApiModelProperty(value = "租户ID")
    @TableField("TENANT_ID")
    private String tenantId;

    @ApiModelProperty(value = "删除标识")
    @TableField("IS_DELETED")
    private String isDeleted;
    
    @ApiModelProperty(value = "通知邮箱")
    @TableField("EMAIL")
    private String email;
    
    @ApiModelProperty(value = "通知微信")
    @TableField("WECHAT")
    private String wechat;
    
    @ApiModelProperty(value = "通知URL")
    @TableField("url")
    private String url;


}
